<style lang="less">
    .web-view{
        width: 100%;
        height: calc(100vh - 160px);
    }
</style>
<template>
    <keep-alive>
        <iframe :src="src" frameborder="0" class="web-view"></iframe>
    </keep-alive>
</template>
<script>
import config from '@/config/index';
export default {
    name:'WebView',
    data(){
        return {
            src:''
        }
    },
    beforeRouteEnter (to, from, next) {
        console.log(to.path);
        next(vm=>{
            vm.src = `${config.operUrl}${to.path}`
        })
    }
}
</script>